<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<title>我的导航 - 我做主</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
    	<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="baidu-site-verification" content="03c1c01080768dfe2d5a00f3da4f2544"/>
		<meta name="keywords" content="上网导航,网址大全,网址导航,我的导航上网导航,我的导航网址,我的导航,我的导航网址大全,我的导航活动, 抽奖活动">
		<meta name="description" content="我的导航能够很方便的收藏、管理您的网址，并汇集很多优秀的网站及资源。及时收录影视、音乐、小说、游戏等分类的网址和内容，让您的网络生活更简单精彩。">
		<link rel="shortcut icon" href="./images/my_navigation.ico" type="image/x-icon">
		<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">
		<link rel="stylesheet" href="/static/css/signin.css">
		<link rel="stylesheet" href="/static/css/spigPet.css" type="text/css"/>
		<script type="text/javascript">
		var isindex = true;
		var visitor =  '';
		<?php if(isset($username) && !empty($username)){?>
			visitor =  "<?php echo $username;?>";
		<?php }?>
		</script>
	</head>

	<body>
			<body>
		<div>
			<nav class="navbar navbar-default" role="navigation">
			  <div class="container-fluid">
			    <div class="navbar-header">
			      <a class="navbar-brand mynavigation" href="http://zwb8023.com/">我的导航</a>
			    </div>
			    <div class="collapse navbar-collapse navbar-right" id="bs-example-navbar-collapse-1">	

					<div class="user-info-div" style="display:none;">	
						<a href="http://zwb8023.com/ucenter/ucenter/index?uid=<?php echo $uid ?>" class="text-primary u"></a>&nbsp;&nbsp;/&nbsp;&nbsp;
						<a href="javascript:void(0);" id="loginOut" class="text-primary">退出</a>
					</div>
			    	<ul class="user-login-reg-div nav navbar-nav navbar-right">
			    	    <li>
			    	    	<form class="form-inline login-form-div" role="form" style="display:none;"> 
			    	    		<div class="user-login-msg pull-left hide">
									<h6 class="puul-right text-danger"></h6>
								</div>
			    	    		<div class="username-div input-group input-group-sm  ">
			    	    			<span class="input-group-addon">用户名：</span>
			    	    			<input type="text" id="username" name="username" width=20 class="form-control" placeholder="用户名/手机号/邮箱">
			    	    		</div>
			    	    		<div class="password-div input-group input-group-sm  ">
			    	    			<span class="input-group-addon">密&nbsp;&nbsp;&nbsp;&nbsp;码：</span>
			    	    			<input type="password" id="password" name="password" width=20 class="form-control" placeholder="密码">
			    	    		</div>
			    	    		<button class="btn btn-primary btn-xs p10" data-loading-text="Loading..." type="button" id="login">
			    	    		点击登陆
			    	    		</button>
			    	    	</form>
			    	    	<a href="javascript:void(0);" class="login-a">登录</a>
			    	    </li>
			    	    <li>
			    	    	<form class="form-inline reg-form-div" role="form" style="display:none;"> 
			    	    		<div class="user-reg-msg pull-left hide">
									<h6 class="puul-right text-danger"></h6>
								</div>
			    	    		<div class="username-reg-div input-group input-group-sm puul-left">
			    	    			<span class="input-group-addon">用户名：</span>
			    	    			<input type="text" id="reg_username" name="reg_username" width=20 class="form-control" placeholder="用户名/手机号/邮箱">
			    	    		</div>
			    	    		<div class="password-reg-div input-group input-group-sm puul-left">
			    	    			<span class="input-group-addon">密&nbsp;&nbsp;&nbsp;&nbsp;码：</span>
			    	    			<input type="text" id="reg_password" name="reg_password" width=20 class="form-control" placeholder="密码">
			    	    		</div>
			    	    		<div class="auth-reg-div input-group input-group-sm puul-left">
			    	    			<span class="input-group-addon">验证码：</span>
			    	    			<input type="text" id="auth_code" name="auth_code" width=20 class="form-control" placeholder="验证码">
			    	    		</div>
			    	    		<button class="btn btn-primary btn-xs p10" data-loading-text="Loading..." type="button" id="register-reg">
			    	    		提交注册
			    	    		</button>
			    	    	</form>
			    	    	<a href="#" class="reg-a">注册</a>
			    	    </li>
			    	</ul>
			    </div>
			  </div>
			</nav>
		</div>

		<div  class="w">
			<h3>修改导航</h3>
			<form action="http://zwb8023.com/ucenter/ucenter/order_url" method="post">
				<input type="hidden" name="cate_id" value="<?php echo $cate_id;?>">
				<table class="table table-bordered">
					<tr>
			          <th width="100px;">排序</th>
			          <th>网址名称</th>
			          <th>网址URL</th>
			        </tr>
				<?php foreach ($url_list as $k => $v) { ?>
					<tr class="id_<?php echo $v['id'];?>">
						<td><input type="text" id="order_by" name="order[<?php echo $v['id'];?>]" value="<?php echo $v['order_by'];?>" style="width:80px"></td>
						<td style="font-size:14px;"><?php echo $v['web_name'];?></td>
						<td style="font-size:14px;"><a href="<?php echo $v['web_url'];?>" target="_blank"><?php echo $v['web_url'];?></a></td>
						<td>
							<button class="btn btn-info btn-xs modify_url"  type="button" uid="<?php echo $v['id'];?>" name="<?php echo $v['web_name'];?>" herf="<?php echo $v['web_url'];?>" data-toggle="modal" data-target=".bs-example-modal-sm">修改</button>
							&nbsp;&nbsp;&nbsp;&nbsp;
						 	<a  class="btn btn-danger btn-xs delete_url" rel="<?php echo $v['id'];?>" href="javascript:void(0);">删除</a>
						 	&nbsp;&nbsp;&nbsp;&nbsp;
						 	<!-- Single button -->
							<div class="btn-group">
							  <button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown" aria-expanded="false">
							    移动到 <span class="caret"></span>
							  </button>
							  <ul class="dropdown-menu" role="menu">
							  	<?php foreach ($cate_list as $kk => $vv) { ?>
							  	<?php if($vv['id'] != $cate_id){ ?>
							    <li><a href="http://zwb8023.com/ucenter/ucenter/change_cate&id=<?php echo $v['id'];?>&to_id=<?php echo $vv['id'];?>&cate_id=<?php echo $cate_id;?>"><?php echo $vv['cate_name'];?></a></li>
							   	<?php }} ?>
							  </ul>
							</div>
						</td>
					</tr>
				<?php }?>
				</table>
				<button type="submit" class="btn btn-primary btn-sm">修改排序</button>
			</form>
		</div>

		<!-- Small modal -->
		<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
		  <div class="modal-dialog modal-sm">
		    <div class="modal-content">
		    	<form action="http://zwb8023.com/ucenter/ucenter/m_url" role="form" method="post">
		     	<div class="modal-header">
			        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			        <h4 class="modal-title">修改导航</h4>
			      </div>
			      <div class="modal-body">
			        <div class="form-group" style="height:60px;">
			       		<input type="hidden" class="form-control cate_id" id="cate_id" name="cate_id" placeholder="cate_id" value="<?php echo $cate_id;?>">
			        	<input type="hidden" class="form-control url_id" id="url_id" name="url_id" placeholder="id" value="">
					    <input type="text" class="form-control page_name" id="page_name" name="page_name" placeholder="网址名称" value="">
					    <input type="text" class="form-control url" id="url" name="url" placeholder="网址URL" value="">
					</div>
			      </div>
			      <div class="modal-footer">
			        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
			        <button type="submit" class="btn btn-primary">提交修改</button>
			      </div>
			    </form>
		    </div>
		  </div>
		</div>

		<div class="footer">
			<ul class="list-inline">
				<li><a class="text-muted" href="http://zwb8023.com/document/document/about" target="_blank">关于本站</a></li>|
				<li><a class="text-muted" href="http://zwb8023.com/document/document/faq" target="_blank">常见问题</a></li>|
				<li><a class="text-muted" href="https://ext.chrome.360.cn/webstore/detail/iipbfeobdcckmlapebacemfbaibbhkfc" target="_blank">安装插件</a></li>|
				<li><a class="text-muted" href="http://zwb8023.com/document/document/feedback" target="_blank">意见吐槽</a></li>|
				<li><a class="text-muted" href="http://zwb8023.com/document/document/contact" target="_blank">联系我们</a></li>
				<li><span class="beian">皖ICP备17027555号-1</span></li>
			</ul>
		  
		</div>
		<!--小人只在首页显示 start*-->
		<div id="spig" class="spig">
		    <div id="message">正在加载中……</div>
		    <div id="mumu" class="mumu"></div>
		</div>
		<!--小人end*-->
		<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
		<script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
		<script src="/static/js/jquery.cookie.js"></script>
		<script src="/static/js/myscript.js"></script>
		<script type="text/javascript" src="/static/js/spig.js"></script>
		
		<!-- 淘宝推广、百度统计、百度分享 JS -->
		<script type="text/javascript"> 
			var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
			document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F1bc58998ba7c344e32ed4427fa7b016b' type='text/javascript'%3E%3C/script%3E"));
		</script>
	</body>
</html>